package com.lh.module1.project.jpatest.entity;

import org.apache.commons.lang3.builder.ToStringBuilder;

import javax.persistence.*;

/**
 * @author lh
 * @Description: 学生实体
 * @date 2021/3/24 13:27
 */
@Entity
@Table(name = "student")
public class Student {
	@Id
	@Column(name = "s_id")
	private String sId;
	@Column(name = "s_name")
	private String sName;
	@Column(name = "s_birth")
	private String sBirth;
	@Column(name = "s_sex")
	private String sSex;

	public Student() {
	}

	public Student(String sId, String sName, String sBirth, String sSex) {
		this.sId = sId;
		this.sName = sName;
		this.sBirth = sBirth;
		this.sSex = sSex;
	}

	public String getsId() {
		return sId;
	}

	public void setsId(String sId) {
		this.sId = sId;
	}

	public String getsName() {
		return sName;
	}

	public void setsName(String sName) {
		this.sName = sName;
	}

	public String getsBirth() {
		return sBirth;
	}

	public void setsBirth(String sBirth) {
		this.sBirth = sBirth;
	}

	public String getsSex() {
		return sSex;
	}

	public void setsSex(String sSex) {
		this.sSex = sSex;
	}

	@Override
	public String toString() {
		return new ToStringBuilder(this)
				.append("sId", sId)
				.append("sName", sName)
				.append("sBirth", sBirth)
				.append("sSex", sSex)
				.toString();
	}
}
